package com.heima.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.heima.mapper.BusinessMapper;
import com.heima.pojo.entity.Business;
import com.heima.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {

    @Autowired
    private BusinessMapper businessMapper;

    /**
     * 查询商圈列表
     */
    @Override
    public List<Business> getList() {
        LambdaQueryWrapper<Business> queryWrapper = new LambdaQueryWrapper<>();
        List<Business> businessList = businessMapper.selectList(queryWrapper);
        return businessList;
    }
}
